home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / games / sherlock.zip / EXAMPLES.DOC < prev    next >
Text File  |  1996-02-20  |  5KB  |  150 lines

  1. PC-Sherlock - Examples of logical analysis:
  2. -------------------------------------------
  3.  
  4. It's very interesting to know that there's no simple formula for
  5. winning in this logical game. Although, I am showing you a few
  6. example games to show how I arrived at my guesses, please don't try
  7. to look for a definite pattern in my play. The games generated are
  8. random and each game requires original thinking.
  9.  
  10. You must have already seen the topic "Examples of deduction" in the
  11. online tutorial. If not, please read the online tutorial before
  12. looking at these examples. Here, I'm showing examples of 3, 4 and 5
  13. digit games.  Note that 3 and 5 digit games are available only in the
  14. registered version. It's my opinion that the 3 digit game is the
  15. easiest to play.
  16.  
  17.  
  18. EXAMPLE 1: (3 digit game)
  19. =========================
  20. CHANCE 1: Asked 123, got 0 bull,  1 cows
  21. CHANCE 2: Asked 456, got 1 bulls, 1 cows
  22.  
  23. Initial assumption:
  24. Assume that '4' is the bull, '6' and '2' are cows.
  25.  
  26. CHANCE 3: Asked 462, got 0 bulls, 2 cows
  27.  
  28. Deduction starts:
  29. Chances of '4' and '6' being present are greater than '2' being
  30. present.  So we change the position of '4' and '6' and ask another
  31. digit from chance 1.
  32.  
  33. CHANCE 4: Asked 346, got 3 bulls
  34.  
  35. WE WIN THE GAME! Of course, here it was lucky to get two of our
  36. assumptions right. Otherwise, it would have taken more chances.
  37.  
  38.  
  39. EXAMPLE 2: (3 digit game)
  40. =========================
  41. CHANCE 1: Asked 123, got 2 bulls, 0 cows
  42. CHANCE 2: Asked 456, got 0 bulls, 1 cows
  43.  
  44. Initial assumption:
  45. Assume that '1' and '2' are the bulls and '4' is the cow.
  46.  
  47. CHANCE 3: Asked 124, got 1 bull , 0 cows
  48.  
  49. Deduction starts:
  50. Assume '1' to be the bull. Then '2' and '4' are absent. Hence, '3' is
  51. present and is a bull in chance '1'. So our number is 1X3 where X is
  52. either '5' or '6' from chance 2. Now, X can't be '5' as the clue for
  53. chance 2 is 1 cow. Hence, X is '6'. So the number to ask is 163.
  54.  
  55. CHANCE 4: Asked 163, got 3 bulls
  56.  
  57. WE WIN THE GAME! Note that unlike the previous example, this win can't
  58. be attributed to just luck. The deduction worked!
  59.  
  60.  
  61. EXAMPLE 3: (4 digit game)
  62. =========================
  63. CHANCE 1: Asked 1234, got 1 bulls, 1 cows
  64. CHANCE 2: Asked 5678, got 0 bulls, 2 cows
  65.  
  66. Initial Assumption:
  67. Assume '3' to be the bull and '2', '5' and '6' to be the cows. We ask
  68. a guess where the cows change position whereas bull does not.
  69.  
  70. CHANCE 3: Asked 6532, got 3 bulls, 0 cows
  71.  
  72. Deduction starts:
  73. We got lucky here to get 3 bulls. Now we assume that we got '5' and
  74. '6' right as bulls. But we are not sure whether '3' was the bull or
  75. the '2' became a bull on a changed position. Let's assume that '2'
  76. became the bull. That means '3' is absent and the number is 65X2
  77. where X can be '1' or '4'. Let's assume X to be '4'. So we ask 6542.
  78.  
  79. CHANCE 4: Asked 6542, got 2 bulls, 0 cows.
  80.  
  81. Deduction continues:
  82. Our clues got reduced in number from 3 bulls to 2 bulls! So most
  83. probably, our basic assumption that '5' and '6' are bulls seems to be
  84. wrong. Only one of '5' and '6' is a bull. In that case, looking at
  85. chance 3, digits '3' and '2' are definitely the bulls. If we assume
  86. '6' to be the third bull, the number is 6X32. Now from chance 2, X
  87. can be '7' or '8'.  Let's assume X to be '7'.  So the number to ask
  88. is 6732.
  89.  
  90. CHANCE 4: Asked 6732, got 4 bulls
  91.  
  92. WE WIN THE GAME! 
  93.  
  94.  
  95. EXAMPLE 4: (5 digit game)
  96. =========================
  97. CHANCE 1: Asked 12345, got 0 bulls, 1 cows
  98.  
  99. Elimintation technique:
  100. It means only one of above 5 digits is present. Let's repeat three of
  101. the above digits for quicker elimination of digits.
  102.  
  103. CHANCE 2: Asked 67123, got 1 bulls, 0 cows
  104.  
  105. Deduction starts:
  106. Since total seven digits asked in first two guesses covered only 1
  107. clue, we deduce that remaining three digits '8','9' and '0' are
  108. definitely present.  Also, it is more probable that the bull is from
  109. '1', '2' and `3' instead of from '6' and '7' as '1', '2' and '3' have
  110. repeated in two chances and have changed positions. We aren't sure
  111. which one so let's repeat '1' and '2' and ask the remaining three
  112. digits in other positions.
  113.  
  114. CHANCE 3: Asked 80129, got 0 bulls, 3 cows
  115.  
  116. Deduction continues:
  117. Since digits '8', '9' and '0' are definitely present as per the
  118. previous deduction, we conclude that '1' and '2' are absent. So, from
  119. chance 2, digit '6', '7' or '3' was the bull. Assume '6' to be the
  120. bull. In that case '1', '2' and '3' are absent and we select the next
  121. digit from chance 1 to be the cow which is digit '4'. Let's change
  122. positions of '8', '9' and '0' (all cows) and ask 69804.
  123.  
  124. CHANCE 4: Asked 69804, got 3 bulls, 1 cows
  125.  
  126. Deduction continues:
  127. This means choice of '4' was wrong in the last step. Hence, we select
  128. the next digit '5' from chance 1. From chance 4, let's assume '6',
  129. '9' and '8' to be the bulls. Hence, we ask 69850. Note that we can't
  130. ask '5' in the last position as it was a cow there in chance 1.
  131.  
  132. CHANCE 5: Asked 69850, got 2 bulls, 3 cows
  133.  
  134. Deduction continues:
  135. Good! We at least got all the 5 digits now. Let's shift the positions
  136. of three assumed cows and ask again.
  137.  
  138. CHANCE 6: 69508, got 5 bulls
  139. WE WIN THE GAME!
  140.  
  141. END OF EXAMPLES
  142. ==================================================================
  143. If you haven't registered, please register PC-Sherlock and support
  144. independent development.  Please see the ordering instructions in the
  145. accompanying file ORDER.DOC.
  146.  
  147. Sanjay Kanade
  148. (Author of PC-Sherlock)
  149. email: 71303.20@compuserve.com
  150.